-- GENERATED SPELL FOR [Tormented Drakkari] --


function spell0_26965(pUnit, Event) --@Cannibalize,n/a--
pUnit:FullCastSpellOnTarget(50642,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26965', 4000, 1)
end

function spell1_26965(pUnit, Event) --@Crazed Hunger,Self--
pUnit:FullCastSpellOnTarget(3151,pUnit)
pUnit:RegisterEvent('Sorts_26965', 6000, 1)
end

function spell2_26965(pUnit, Event) --@Kick,n/a--
pUnit:FullCastSpellOnTarget(43518,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26965', 2349, 1)
end

function spell3_26965(pUnit, Event) --@Tormented Roar,Self--
pUnit:FullCastSpellOnTarget(50636,pUnit)
pUnit:RegisterEvent('Sorts_26965', 8321, 1)
end

function Sorts_26965(pUnit, Event)
local choix_sorts_26965 = math.random(0, 3)
if choix_sorts_26965 == 0 then
pUnit:RegisterEvent('spell0_26965', 1, 1)
end
if choix_sorts_26965 == 1 then
pUnit:RegisterEvent('spell1_26965', 1, 1)
end
if choix_sorts_26965 == 2 then
pUnit:RegisterEvent('spell2_26965', 1, 1)
end
if choix_sorts_26965 == 3 then
pUnit:RegisterEvent('spell3_26965', 1, 1)
end
end

function mob26965_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26965', math.random(1500, 3000), 1)
end

function mob26965_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26965_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26965_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26965, 1, 'mob26965_Action')
RegisterUnitEvent(26965, 2, 'mob26965_Leave')
RegisterUnitEvent(26965, 3, 'mob26965_Kill')
RegisterUnitEvent(26965, 4, 'mob26965_Die')
